package com.cleaningcloud.cld.controller.mini;

import com.cleaningcloud.cld.domain.mini.MiniExportDto;
import com.cleaningcloud.cld.service.mini.IMiniExportService;
import com.cleaningcloud.common.core.web.controller.BaseController;
import com.cleaningcloud.common.core.web.domain.AjaxResult;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * packageName com.cleaningcloud.cld.controller.mini
 *
 * @author Shaw
 * @version JDK 8
 * @className MiniExportController
 * @date 2025-06-25
 * @description 小程序(客户端)-导出功能
 */
@RestController
@RequestMapping("/mini/exportData")
public class MiniExportController extends BaseController {

    @Autowired
    private IMiniExportService iMiniExportService;

    /**
     * @Author Shaw
     * @Description 根据评价ID获取详情（员工）
     * @date: 2025-06-18 9:39
     * @param: //TODO
     */
    @Operation(description = "查看员工评价详情")
    @GetMapping("/exportImg")
    public AjaxResult exportImg(MiniExportDto miniExportDto) {
        return success(iMiniExportService.exportImg(miniExportDto));
    }
}